﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="khuyenmai_add.ascx.cs"
    Inherits="Shop_Phone.Admin.UserControls.khuyenmai_add" %>
<%@ Register Src="~/Admin/UserControls/NotificationDialog.ascx" TagPrefix="uc" TagName="NotificationDialog" %>

<div class="widgets ui-sortable">
    <div class="widget sortable table" style="opacity: 1;">
        <h3 class="handle">
            Thêm sản phẩm khuyến mại mới
        </h3>
        <div>
            <p>
                <br />
                Những mục có dấu <span style="color: Red">*</span> là bắt buộc phải nhập</p>
            <fieldset>
                <section><label><span style="color:Red">*</span> Danh mục sản phẩm:</label>
                    <div>
                        <asp:DropDownList ID="ddldanhmuc" runat="server" AutoPostBack="true" 
                            onselectedindexchanged="ddldanhmuc_SelectedIndexChanged"></asp:DropDownList>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Sản phẩm:</label>
                    <div>
                        <asp:DropDownList ID="ddlsanpham" runat="server"  AutoPostBack="true" DataValueField="masanpham"></asp:DropDownList>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Nội dung khuyến mại:</label>
                    <div>
                        <asp:TextBox ID="txtndkhuyenmai" runat="server" Width="200px" ToolTip="" />
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Thời gian bắt đầu:</label>
                    <div>
                        <asp:TextBox ID="txtngaybatdau" runat="server" Width="200px" ToolTip="" />
                        <asp:Calendar ID="Calendar" runat="server" BorderWidth="2px" BackColor="white" Width="200px"
                            ForeColor="Black" Height="180px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#E4DA85"
                            BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4" OnSelectionChanged="Calendar_SelectionChanged">
                            <TodayDayStyle ForeColor="Black" BackColor="#E9E19A"></TodayDayStyle>
                            <DayHeaderStyle Font-Size="7pt" Font-Bold="True" BackColor="#E9E19A"></DayHeaderStyle>
                            <SelectedDayStyle Font-Bold="True" ForeColor="White" BackColor="#D5D900"></SelectedDayStyle>
                        </asp:Calendar>
                    </div>
                </section>
                <section><label><span style="color:Red">*</span> Thời gian kết thúc:</label>
                    <div>
                        <asp:TextBox ID="txtngayketthuc" runat="server" Width="200px" ToolTip="" />
                          <asp:Calendar ID="Calendar1" runat="server" BorderWidth="2px" BackColor="white" Width="200px"
                            ForeColor="Black" Height="180px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#E4DA85"
                            BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4" OnSelectionChanged="Calendar2_SelectionChanged">
                            <TodayDayStyle ForeColor="Black" BackColor="#E9E19A"></TodayDayStyle>
                            <DayHeaderStyle Font-Size="7pt" Font-Bold="True" BackColor="#E9E19A"></DayHeaderStyle>
                            <SelectedDayStyle Font-Bold="True" ForeColor="White" BackColor="#D5D900"></SelectedDayStyle>
                        </asp:Calendar>
                    </div>
                </section>
                <section>
				    <div>
				        <asp:Button ID="btnSubmit" CssClass="button" runat="server" Text="Xác nhận" 
                                Width="80px" onclick="btnSubmit_Click"/>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" CssClass="button" runat="server" Text="Hủy" 
                                Width="80px" onclick="btnCancel_Click"/>
                    </div>
			    </section>
            </fieldset>
        </div>
    </div>
</div>
<uc:NotificationDialog ID="ucNotificationDialog" runat="server" DialogTitle="Thêm sản phẩm khuyến mại mới" />
